package com.zzyl.controller.customer;


import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.entity.ConsultationRecord;
import com.zzyl.service.ConsultationRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(value = "退住咨询")
@RestController
@RequestMapping("/customer/consultation")
public class CustomConsultationController {

    @Resource
    private ConsultationRecordService service;


    @ApiOperation("新增咨询")
    @PostMapping("/add")
    public ResponseResult<?> add(@RequestBody ConsultationRecord consultationRecord) {
        service.add(consultationRecord);
        return ResponseResult.success();
    }
}
